<?php

use yii\db\Migration;

/**
 * Class m181206_003059_card_add_attr_update_time
 */
class m181206_003059_card_add_attr_update_time extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->addColumn('{{%card}}', 'attr_update_time', $this->integer()->comment('属性更新时间')->after('term_end_time'));
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        $this->dropColumn('{{%card}}', 'attr_update_time');
    }
}
